// 对 ant design vue 的默认样式覆盖
// popover
.ant-popover {
    padding-top: 5px !important;
}

.ant-popover-arrow {
    display: none;
}

.ant-popover-inner {
    box-shadow: $boxShadow;
    // border: 1px solid $borderColor;
    border-radius: 10px;
}

// .ant-popover-inner-content {
//     padding: 8px !important;
// }

// dropdown
.ant-dropdown {
    min-width: 120px;
}

.ant-dropdown-menu {
    box-shadow: $boxShadow;
}

.ant-dropdown-menu-item {
    &:hover {
        background-color: rgba($color: $themeColor, $alpha: .2);
    }
}

// button
.ant-btn {
    border-radius: 3px;
    background: $propertyBtnColor;
    border: none;
    color: #fff;
    height: 40px;
    font-size: 16px;

    &:hover,
    &:focus,
    &:active {
        background: $textHoverColor;
        color: $color3e9bff;
        border-color: $color3e9bff;
    }

    &.no-padding {
        padding: 0;
    }
}

.ant-btn-group>.ant-btn:first-child:not(:last-child),
.ant-btn-group>span:first-child:not(:last-child)>.ant-btn {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.ant-btn-group>.ant-btn:last-child:not(:first-child),
.ant-btn-group>span:last-child:not(:first-child)>.ant-btn {
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}

// radio
.ant-radio-button-wrapper {
    text-align: center;
    background: $buttonbg;
    border: none;
    color: #fff;
}

.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    background: $textHoverColor;
    color: #fff;
}

.ant-radio-button-wrapper:first-child {
    border-left: 0;
}

.ant-radio-button-wrapper:not(:first-child)::before {
    display: none;
}

// slider
.ant-slider-track {
    background-color: $themeColor;
}

.ant-slider-handle {
    width: 16px;
    height: 16px;
    background-color: $themeColor;
    border: 3px solid white;
    // border-color: $themeColor;
}

// select
.ant-select {
    user-select: none;

    .ant-select-selector {
        height: 40px !important;
        background: $buttonbg !important;
        color: #fff;
        border: 1px solid $selectborder !important;
        border-radius: 6px !important;

        .ant-select-selection-item {
            line-height: 40px;
        }
    }

    .ant-select-arrow {
        color: #fff !important;
    }
}

.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
    // background-color: rgba($color: $themeColor, $alpha: .2);
    background-color: rgba($color: $color1b3d61, $alpha: 1);
}

.ant-select-dropdown {
    background: $buttonbg;
    color: #fff;
}

.ant-select-item {
    color: #fff;

    &:hover {
        color: #fff;
    }
}

.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
    color: $color327fcf;
    background: $color1b3d61;
}

// tooltip
.ant-tooltip-inner {
    font-size: 12px;
}

//input
.ant-input {
    border: 1px solid rgba(240, 241, 243, 1);
}

//input-number
.ant-input-number {
    background: $buttonbg !important;
    color: #fff;
    border: none !important;
    height: 40px;
    border-radius: 6px;
}

.ant-input-number-input {
    height: 40px;
}

.ant-input-number-disabled {
    color: rgba(255, 255, 255, 0.25);
}

.ant-input-number-handler-wrap {
    background: none;
    border-left: 0;
}

.ant-input-number-handler-down {
    border: 0;
}

.ant-input-number-handler-up-inner,
.ant-input-number-handler-down-inner {
    color: #fff;
}

//ant-divider
.ant-divider {
    border-top: 1px solid $contentBorderColor;
}

//ant-checkbox
.ant-checkbox+span {
    color: #6c6c84;
}

//model
.ant-modal-content {
    border-radius: 10px;
}

//close
.ant-modal-close-x {
    margin-top: 15px;
    margin-right: 15px;
    width: 26px;
    height: 26px;
    border-radius: 26px;
    line-height: 26px;
    background: #F0F3FC;
    color: #B8C3E4;
}

//slider
.ant-slider-rail {
    background: #0E0E1E;
    border-radius: 2px;
}

// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// 图表
.classlist {
    overflow: hidden;
    padding: 0 20px;
    height: calc(100% - 50px);

    ul {
        height: 100%;
        overflow-y: scroll;
    }

    li {
        float: left;
        margin: 20px;
        box-sizing: border-box;
        width: calc(20% - 40px);
        box-shadow: 0 0 30px 0 rgba(47, 50, 134, 0.1);
        border-radius: 16px;
        background: #fff;
        // transition: 0.5s all ease;
        overflow: hidden;
        height: 250px;
        text-align: center;

        .name_inp {
            font-size: 18px;
            line-height: 44px;
            text-align: center;
            padding: 0 10px;

            .name_inp_inp {
                background-color: transparent;
                border: none;
                outline: none;
                text-align: center;

                &:hover {
                    cursor: default;
                }

                &:focus {
                    background-color: #fff;
                    color: #000;
                    border-radius: 15px;
                    border: none;
                    outline: none;
                    box-shadow: 0 8px 20px 0 rgb(47 50 134 / 10%);
                }
            }

            .inp_span {
                font-size: 14px;
            }

            .inp_icon {
                color: #fff;
                font-size: 14px;
                display: none;
            }

            &:hover {
                .inp_span {
                    color: #fff;
                }

                .inp_icon {
                    display: inline-block;
                }
            }
        }

        &:hover {
            box-sizing: border-box;
            background-color: #686ce8;
            border: 1px solid #686ce8;

            .name_inp_inp {
                color: #fff;
            }

            .inp_span {
                color: #fff;
            }

            .name_inp {
                color: #fff;
            }

            .box {
                height: calc(100% - 43px);

                .mask,
                .edit,
                .view {
                    opacity: 1;
                }
            }
        }

        .box {
            background-size: cover;
            height: calc(100% - 43px);
            width: 100%;
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            background-color: #fff;

            img {
                width: 100%;
            }

            .mask {
                position: absolute;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.3);
                left: 0;
                top: 0;
                border-radius: 16px;
                z-index: 8;
                opacity: 0;
            }

            .checkbox {
                position: absolute;
                left: 18px;
                top: 18px;
                z-index: 9;
            }

            .view {
                position: absolute;
                right: 50px;
                bottom: 10px;
                display: flex;
                z-index: 9;
                opacity: 0;

                dd {
                    width: 30px;
                    height: 30px;
                    background: #fff;
                    border-radius: 8px;
                    color: #afacc7;
                    text-align: center;
                    line-height: 30px;
                    margin-left: 10px;
                    cursor: pointer;
                }

                .iconfont {
                    font-size: 15px;
                }
            }

            .edit {
                position: absolute;
                right: 10px;
                bottom: 10px;
                display: flex;
                z-index: 9;
                opacity: 0;

                dd {
                    width: 30px;
                    height: 30px;
                    background: #fff;
                    border-radius: 8px;
                    color: #afacc7;
                    text-align: center;
                    line-height: 30px;
                    margin-left: 10px;
                    cursor: pointer;
                }
            }
        }
    }
}

// 列表
.classlist2 {
    overflow: hidden;
    height: calc(100% - 50px);

    ul {
        padding: 10px 0;
        height: 100%;
        overflow-y: scroll;
    }

    li {
        display: flex;
        height: 80px;
        align-items: center;
        justify-content: space-between;
        margin-left: 20px;
        margin-right: 20px;
        padding: 0 20px;

        .center {
            height: 50px;
        }

        .name_inp {
            font-size: 18px;
            line-height: 42px;
            text-align: center;
            padding: 0 10px;
            color: #413a50;

            .name_inp_inp {
                background-color: transparent;
                border: none;
                outline: none;
                text-align: center;

                &:hover {
                    cursor: default;
                }

                &:focus {
                    border-radius: 21px;
                }
            }

            .inp_span {
                font-size: 16px;
            }

            .inp_icon {
                font-size: 14px;
                display: none;
                color: #413a50;
            }

            &:hover {
                .inp_icon {
                    display: inline-block;
                }
            }
        }

        input {
            text-align: left;
        }

        dl {
            display: flex;
            align-items: center;

            .iconfont {
                display: none;
            }

            &:hover {
                .iconfont {
                    display: block;
                }
            }
        }

        &:hover {
            box-shadow: 0 2px 20px 0 rgba(87, 98, 253, 0.13);
            border-radius: 15px;

            .edit {
                .iconfont {
                    color: $textH2Color;
                }
            }
        }

        .box {
            display: flex;
            align-items: center;
            font-size: 18px;

            p {
                cursor: pointer;
            }

            .checkbox {
                margin-right: 20px;
            }

            img {
                width: 63px;
                height: 54px;
                border-radius: 8px;
                margin: 0 20px 0 0;
                cursor: pointer;
            }
        }

        .edit {
            .iconfont {
                color: $textDisabledColor;
                font-size: 20px !important;
            }
        }
    }

    .list_right {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .view {
            margin-right: 15px;
            font-size: 14px;

            .anliyulanicon:hover {
                color: #686ce8;
            }

            .iconfont {
                font-size: 14px;
            }
        }
    }

    .editlist {
        display: flex;
        color: $textH2Color;

        dd {
            margin-right: 20px;
        }

        .iconfont {
            // color: $textDisabledColor;
            font-size: 18px;

            &:hover {
                color: #686ce8;
            }
        }
    }
}

// 更多弹出框
.popverclass {
    .ant-popover-inner {
        width: 105px;
        // height: 225px;
        background: #fff;
        box-shadow: 0 4px 20px 0 rgba(87, 98, 253, 0.1);
        border-radius: 10px;
        border: none;

        .tips {
            text-align: center;

            dd {
                margin: 10px;

                &:hover {
                    color: #686ce8;
                    cursor: pointer;
                }
            }
        }
    }
}

// 分享显示弹出框
.shareLinks {
    h2 {
        margin-bottom: 20px;
        font-size: 18px;
        color: #4B4D54;
        letter-spacing: 0;
        line-height: 16px;
        font-weight: 400;
    }

    .flex {
        position: relative;

        .ant-input-lg {
            color: #9da9c6;
        }

        .linkCopy {
            position: absolute;
            top: 0;
            right: 0;
            width: 50px;
            height: 50px;
            background: #abaeff;
            line-height: 50px;
            text-align: center;
            border-radius: 10px;
            color: #fff;

            &:hover {
                cursor: pointer;
            }

            i {
                font-size: 22px;
            }
        }
    }

    .ant-popover-inner {
        width: 384px;
        height: 146px;
        background: #fff;
        box-shadow: 0 4px 20px 0 rgba(87, 98, 253, 0.1);
        border-radius: 10px;
        border: none;
    }

    .ant-input-lg {
        height: 50px;
        background: #f8f9fa;
        border: 1px solid rgba(240, 241, 243, 1);
        border-radius: 10px;
        white-space: nowrap;
        text-overflow: ellipsis;
        padding: 0 60px 0 16px;
    }

    .ant-popover-content {
        width: 384px !important;
    }
}

// 下载为弹出框
.downloadAs {
    .ant-popover-inner {
        width: 127px;
        background: #1e2330;
        box-shadow: 0px 0px 10px 0px rgba(13, 14, 55, 0.4);
        border-radius: 10px;
        border: none;
        color: #fff;
    }

    .downloadFlex {
        display: flex;
        flex-direction: column;
        align-items: center;

        dd {
            padding: 5px 10px;
            color: #fff;
            border-radius: 6px;
            &:hover {
                // color: $textH2Color;
                cursor: pointer;
                background-color: #242b3e;
            }
        }
    }
}

// 组件全选修改样式
.selectAllTop {
    .ant-checkbox {
        .ant-checkbox-inner {
            border: 1px solid #ffba00;
            // background-color: #ffba00;
        }
    }
}

// 分享添加成员
.distribute_more {
    .ant-drawer-content-wrapper {
        height: calc(100vh - 100px);
        width: 440px;
        left: calc(100vw - 490px);
        margin-top: 50px;

        .ant-drawer-content {
            border-radius: 30px;
            overflow: initial;
        }
    }

    .ant-drawer-header {
        display: none;
    }

    .ant-drawer-body {
        padding: 32px;
        overflow: inherit;
    }
}

// 分享成员搜索框
.distributemore_inp {
    border: none;
    width: 296px;
    height: 42px;
    background: #f6f8fb;
    border-radius: 10px;

    .ant-input-prefix {
        i {
            color: #9da9c6;
        }
    }

    .ant-input {
        background: #f6f8fb;
    }
}

// 首页左侧下拉菜单
#dddddd {
    background-color: transparent;

    .ant-menu-submenu {
        .ant-menu-submenu-title {
            .ant-menu-submenu-arrow {
                color: #686ce8;
            }

            &:active {
                background-color: rgba($color: #2531e1, $alpha: 0.3) !important;
                border-radius: 9px;
            }
        }
    }

    .addline {
        padding-left: 46px !important;

        .ant-menu-title-content {
            color: #626377;
        }
    }

    .ant-menu-sub.ant-menu-inline {
        background-color: #22252c;
    }

    .ant-menu-item:hover {
        background-color: #253141 !important;
    }

    .ant-menu-item:active {
        background-color: #253141 !important;
    }

    .ant-menu-item-selected {
        background-color: #253141 !important;
    }

    .ant-menu-submenu-active {
        background-color: #253141 !important;
    }
}

// 字体颜色--右侧按钮
.color_6f6d9d {
    color: #6f6d9d;
}

// 字体颜色--中间字体
.color_413a50 {
    color: #413a50;
    font-size: 18px;
}

// 按钮颜色
.color_a8b5d7 {
    color: #A8B5D7;
}

//menu
.ant-menu-inline.ant-menu-root .ant-menu-item>*,
.ant-menu-inline.ant-menu-root .ant-menu-submenu-title>* {
    width: 18px;
}

.ant-menu-item-selected {
    color: #413A50;
    background: #FFFFFF !important;
    box-shadow: 0px 4px 20px 0px rgba(87, 98, 253, 0.1);
    border-radius: 9px;

    .ant-menu-title-content {
        color: #4355dc;
    }
}

.ant-menu-title-content {
    position: relative;
    display: flex;
    // margin-left: 17px;
    font-size: 18px;
    color: #cfd0d9;
    letter-spacing: 0;
    line-height: 18px;
    font-weight: 400;
    align-items: center;
}

.ant-menu-submenu-title {
    font-size: 18px;
    color: #413A50;
    letter-spacing: 0;
    line-height: 18px;
    font-weight: 400;
}

.ant-menu-submenu,
.group-list {
    margin-bottom: 40px !important;
}

.ant-menu .sublist {
    margin: 20px 0 !important;
}

.ant-menu-title-content:hover,
.ant-menu-submenu-title:hover,
.ant-menu-submenu-arrow:hover {
    color: #4355dc !important;
}

.ant-menu-item-selected::after {
    display: none;
}

.ant-menu-submenu-active,
.ant-menu-item-active {
    color: #686CE8 !important;
    border-radius: 9px;
    background-color: rgba($color: #EDEFFF, $alpha: 0.3) !important;
}

.ant-menu-submenu-arrow {
    // color: #686CE8;
    // background-color: #686CE8;
}

.ant-menu-submenu-arrow:hover {
    color: #686CE8 !important;
    background-color: #686CE8 !important;
}

.ant-menu-submenu-arrow::before:hover,
.ant-menu-submenu-arrow::after:hover {
    color: #686CE8 !important;
    background-color: #686CE8 !important;
}

.ant-menu-sub.ant-menu-inline {
    background-color: white;
}

.ant-menu-inline,
.ant-menu-vertical,
.ant-menu-vertical-left {
    border: none;
}

.addline {
    margin-left: 45px !important;
}

// 编辑页头部icon气泡
.editor_topicon_popover {
    width: 141px;
    // background-color: #171a21;


    .ant-popover-inner {
        background-color: #171a21;
        color: #fff;
        border-radius: 0;
    }

    .ant-popover-inner-content {
        padding: 0 0 5px 0 !important;
        color: #fff;
        border: solid 1px #3587dd;

        p {
            display: flex;
            align-items: center;
            height: 41px;
            padding: 0 0 0 22px;

            &:hover {
                background-color: #1b3d61;
                color: #3d9cff;
                cursor: pointer;
            }
        }

        i {
            width: 16px;
            // height: 18px;
            margin-right: 13px;
        }

        // span {
        //     margin-left: 13px;
        // }
    }
}